﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace HZYProject.Domain
{
    /// <summary>
    /// 文字
    /// </summary>
    public class Article
    {
        /// <summary>
        /// 文字编号
        /// </summary>
        public int ArticleID { get; set; }

        /// <summary>
        /// 文字类型编号
        /// </summary>
        public int ArticleTypeID { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        [DataType(DataType.DateTime)]
        public DateTime CreateTime { get; set; }


        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public ArticleStatus Status { get; set; }



        /// <summary>
        /// 导航属性-文字类型
        /// </summary>
        public virtual ArticleType ArticleType { get; set; }
    }

    public enum ArticleStatus
    {
        [Display(Name = "草稿")]
        Draft = 1,
        [Display(Name = "审核")]
        Audit = 2,
        [Display(Name = "发布")]
        Publish = 3,
        [Display(Name = "冻结")]
        Frozen = 4,
        [Display(Name = "删除")]
        Del = 5
    }
}
